<?php
defined('_JEXEC') or die('Direct Access to this location is not allowed.');
 
class ModCWeremember
{
    function getNames( $params )
	{
	
		$db =& JFactory::getDBO();
		$daysbefore = $params->get( 'daysbefore', 2 );
		$daysafter = $params->get( 'daysafter', 5 );

		$json = file_get_contents('http://rcj.org/it/congregation/necro/weremember/?daysbefore=' . $daysbefore . '&daysafter=' . $daysafter . '&prov=' . $prov . '&format=json');
		
		return json_decode($json);
	}
} 


